package com.xhai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xhai.common.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 参数表
 * </p>
 *
 * @author songhai
 * @since 2025-05-26
 */
@Getter
@Setter
@ToString
@TableName("sys_config")
@Schema(name = "SysConfig", description = "参数表")
public class SysConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 参数ID
     */
    @Schema(description = "参数ID")
    @TableId(value = "CONFIG_ID", type = IdType.ASSIGN_ID)
    private Long configId;

    /**
     * 参数编码
     */
    @TableField("CONFIG_CODE")
    @Schema(description = "参数编码")
    private String configCode;

    /**
     * 参数名称
     */
    @TableField("CONFIG_NAME")
    @Schema(description = "参数名称")
    private String configName;

    /**
     * 参数值
     */
    @TableField("CONFIG_VALUE")
    @Schema(description = "参数值")
    private String configValue;

    /**
     * 参数类型（SYSTEM系统参数，COMMON普通参数，BUSINESS业务参数
     */
    @TableField("TYPE")
    @Schema(description = "参数类型（SYSTEM系统参数，COMMON普通参数，BUSINESS业务参数")
    private String type;

    /**
     * 备注
     */
    @TableField("REMARK")
    @Schema(description = "备注")
    private String remark;
}
